package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加类别的DTO类
 *
 * @author java@杨波
 * @version 0.0.1
 */
@Data
public class CategoryAddNewDTO implements Serializable {
    /**
     * 类别名称
     */
    @NotNull(message = "添加类别失败,必须提交类别的名称")
    @ApiModelProperty(value = "类别名称", example = "华为Mat", required = true)
    private String name;

    /**
     * 父级类别id，如果无父级，则为0
     */
    @ApiModelProperty(value = "父级类别id", example = "如果无", required = true)
    private Long parentId;

    /**
     * 深度，最顶级类别的深度为1，次级为2，以此类推
     */
    @ApiModelProperty(value = "类别深度", example = "1", required = true)
    private Integer depth;

    /**
     * 关键词列表，各关键词使用英文的逗号分隔
     */
    @ApiModelProperty(value = "类别关键词列表", example = ",", required = true)
    private String keywords;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "类别的排序序号", example = "1", required = true)
    private Integer sort;

    /**
     * 图标图片的URL
     */
    @ApiModelProperty(value = "类别图片的图标", example = "", required = true)
    private String icon;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(value = "类别是否启用", example = "是", required = true)
    private Integer enable;

    /**
     * 是否为父级（是否包含子级），1=是父级，0=不是父级
     */
    @ApiModelProperty(value = "类别是否是父级", example = "1", required = true)
    private Integer isParent;

    /**
     * 是否显示在导航栏中，1=启用，0=未启用
     */
    @ApiModelProperty(value = "类别是否显示在导航栏中", example = "1", required = true)
    private Integer isDisplay;
}
